package net.library.clink.core;

import java.io.Closeable;

/**
 * 接收数据的调度者
 * 把一份或者多份IoArgs组合成一份Packet
 */

public interface ReceiveDispatcher extends Closeable {
    void start();

    void stop();

    interface ReceivePacketCallback{
        void onReceivePacketCompleted(ReceivePacket packet);

        ReceivePacket<?,?> onArrivedNewPacket(byte type, int length);
    }
}
